package com.google.gson;

final class a implements ExclusionStrategy {
    a() {
    }

    private boolean a(Class cls) {
        return !Enum.class.isAssignableFrom(cls) && (cls.isAnonymousClass() || cls.isLocalClass());
    }

    public boolean shouldSkipClass(Class cls) {
        return a(cls);
    }

    public boolean shouldSkipField(d dVar) {
        return a(dVar.c());
    }
}
